-- GENERATED SPELL FOR [Noxious Shredder] --


function spell0_4348(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4348', 30000, 1)
end

function spell1_4348(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_4348', 605, 1)
end

function Sorts_4348(pUnit, Event)
local choix_sorts_4348 = math.random(0, 1)
if choix_sorts_4348 == 0 then
pUnit:RegisterEvent('spell0_4348', 1, 1)
end
if choix_sorts_4348 == 1 then
pUnit:RegisterEvent('spell1_4348', 1, 1)
end
end

function mob4348_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4348', math.random(1500, 3000), 1)
end

function mob4348_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4348_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4348_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4348, 1, 'mob4348_Action')
RegisterUnitEvent(4348, 2, 'mob4348_Leave')
RegisterUnitEvent(4348, 3, 'mob4348_Kill')
RegisterUnitEvent(4348, 4, 'mob4348_Die')
